package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.CountriesMapper;
import com.yunji.framework_template.orm.persistence.model.Countries;

/**
 * Created by fenglibin on 2018/11/15.
 */
@Service
public class CountriesService {

    @Autowired
    private CountriesMapper countriesMapper;

    public int deleteByPrimaryKey(String countryCode) {
        return countriesMapper.deleteByPrimaryKey(countryCode);
    }

    public int insert(Countries record) {
        return countriesMapper.insert(record);
    }

    public int insertSelective(Countries record) {
        return countriesMapper.insertSelective(record);
    }

    public Countries selectByPrimaryKey(String countryCode) {
        return countriesMapper.selectByPrimaryKey(countryCode);
    }

    public int updateByPrimaryKeySelective(Countries record) {
        return countriesMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Countries record) {
        return countriesMapper.updateByPrimaryKey(record);
    }

    public List<Countries> selectByCondition(Countries record) {
        return countriesMapper.selectByCondition(record);
    }

    public List<Countries> selectAll() {
        return countriesMapper.selectAll();
    }

    public List<Countries> selectByPage(Page<Countries> page) {
        return countriesMapper.selectByPage(page);
    }

    public Integer count(Countries record) {
        return countriesMapper.count(record);
    }

    public int deleteByCondition(Countries record) {
        return countriesMapper.deleteByCondition(record);
    }

}
